package cn.bai.mvc;

import org.junit.Test;

/**
 * Created by Admin on 12/23 0023.
 */
public class MyString {
    @Test
    public void test(){
        String str=null;
        str=String.format("Hi,%s","白孟江");
        System.out.println(str);
        System.out.printf("3>7的结果是：%b %n", 3>7);
        System.out.printf("100的一半是：%d %n", 100/2);
        System.out.printf("50元的书打8.5折扣是：%f 元%n", 50*0.85);
        System.out.printf("上面的折扣是%d%% %n", 85);
    }
}
